module.exports = {
    TABLE_NICK_NAME: '判题记录', // 表的昵称
    TABLE_DESC: '判题记录表', // 表的描述
    sp_practice_id: {
        type: "input",
        data_type: "VARCHAR(50)",
        attr: { type: "text" },
        label: "作业id",
        rule: { NotNull: true }
    },
    sp_topic_id: {
        type: "input",
        data_type: "VARCHAR(50)",
        attr: { type: "text" },
        label: "题目id",
    },
    sp_students_id: {
        type: "input",
        data_type: "VARCHAR(50)",
        attr: { type: "text" },
        label: "学生id",
    },
    stu_answer: {
        type: "input",
        data_type: "VARCHAR(500)", // 修改长度
        attr: { type: "text" },
        label: "答案",
    },
    true_answer: {
        type: "input",
        data_type: "VARCHAR(500)", // 修改长度
        attr: { type: "text" },
        label: "正确答案",
    },
    res:{
        label:'答案判定',
        data_type: "INT",
        attr:{
            actions: [
                { name: '正确', value: '1' },
                { name: '错误', value: '0' },
            ]
        },
        type:'select'
    },
    grade: {
        type: "input",
        data_type: "DOUBLE",
        attr: { type: "text" },
        label: "分数",
    },
    content: {
        type: "input",
        data_type: "VARCHAR(500)",
        attr: { type: "text" },
        label: "给分理由",
    },
    is_teacher: {
        type: "input",
        data_type: "INT",
        attr:{
            actions: [
                { name: '老师评分', value: '1' },
                { name: '自动评分', value: '0' },
            ]
        },
        type:'select'
    },
    remark: {
        type: "input",
        data_type: "varchar(500)",
        attr: { type: "text" },
        label: "备注",
    },
    sp_students_id: {
        type: "input",
        data_type: "varchar(50)",
        attr: { type: "text" },
        label: "学生id",
    },
    status: {
        type: "switch",
        label: "状态",
        unList: true,
    },
    create_by: {
        type: "input",
        data_type: "BIGINT",
        attr: { type: "text" },
        label: "创建人",
        rule: { NotNull: false }
    },
    update_by: {
        type: "input",
        data_type: "BIGINT",
        attr: { type: "text" },
        label: "更新人",
        rule: { NotNull: false }
    }

};
